.post-management {
  .header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;

    .title-section {
      h2 {
        margin: 0 0 8px 0;
        color: #262626;
        font-size: 24px;
        font-weight: 600;
      }

      p {
        margin: 0;
        color: #8c8c8c;
        font-size: 14px;
      }
    }

    .action-section {
      flex-shrink: 0;
    }
  }

  .search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;

    .search-input {
      flex: 1;
      max-width: 300px;
    }

    .category-select {
      width: 150px;
      flex-shrink: 0;
    }

    .search-icon {
      color: #bfbfbf;
      cursor: pointer;
      transition: color 0.3s;

      &:hover {
        color: #1890ff;
      }
    }

    .reset-btn {
      flex-shrink: 0;
    }
  }

  .table-section {
    .post-title-section {
      h4 {
        margin: 0 0 4px 0;
        color: #262626;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.4;
      }

      .post-desc {
        margin: 0;
        color: #8c8c8c;
        font-size: 12px;
        line-height: 1.5;
        display: block;
        max-width: 250px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }

    .author-name {
      color: #595959;
      font-weight: 500;
    }

    .file-name {
      color: #722ed1;
      font-size: 12px;
      display: inline-block;
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    nz-tag {
      font-weight: 500;
    }

    nz-button-group {
      .ant-btn {
        margin-right: 8px;

        &:last-child {
          margin-right: 0;
        }
      }
    }
  }

  // 表格样式优化
  :host ::ng-deep {
    .ant-table-thead > tr > th {
      background-color: #fafafa;
      font-weight: 600;
      color: #262626;
    }

    .ant-table-tbody > tr > td {
      padding: 16px;
      vertical-align: top;
    }

    .ant-table-tbody > tr:hover > td {
      background-color: #f5f5f5;
    }

    // 分页样式
    .ant-pagination {
      margin-top: 24px;
      text-align: right;
    }

    // 模态框样式
    .ant-modal-body {
      padding: 24px;
    }

    .ant-form-item {
      margin-bottom: 24px;
    }

    .ant-form-item-label > label {
      font-weight: 500;
      color: #262626;
    }

    .ant-form-explain {
      font-size: 12px;
      color: #8c8c8c;
      margin-top: 4px;
    }

    // 按钮样式
    .ant-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    // 标签样式
    .ant-tag {
      border-radius: 4px;
      padding: 4px 8px;
    }

    // 选择器样式
    .ant-select {
      .ant-select-selector {
        border-radius: 4px;
      }
    }

    // 文本域样式
    .ant-input {
      border-radius: 4px;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .post-management {
    .header-section {
      flex-direction: column;
      gap: 16px;
      align-items: stretch;
    }

    .search-section {
      flex-direction: column;
      align-items: stretch;

      .search-input {
        max-width: none;
      }

      .category-select {
        width: 100%;
      }
    }

    .table-section {
      overflow-x: auto;

      .post-title-section {
        .post-desc {
          max-width: 200px;
        }
      }

      .file-name {
        max-width: 80px;
      }
    }
  }
}

@media (max-width: 576px) {
  .post-management {
    .table-section {
      .post-title-section {
        .post-desc {
          max-width: 150px;
        }
      }

      .file-name {
        max-width: 60px;
      }
    }
  }
}
